package com.lagou.client.controller;

import com.lagou.common.api.IUserService;
import com.lagou.common.po.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author Kirito
 * @description:
 * @date 2020/06/05
 */
@RestController
public class UserController {

    @Autowired
    private IUserService userService;

    @RequestMapping("/users")
    public List<User> listUser() {
        return userService.listUser();
    }

    @RequestMapping("/hello")
    public String sayHello() {
        return userService.sayHello();
    }

}
